package com.tegtech.common.properties;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import lombok.Getter;

/**
 * 项目配置
 * @Author Jun
 * @date 2021年5月26日 上午11:40:50
 */
@Component
@ConfigurationProperties(prefix = "app")
public class AppProperties {
	
	@Getter
	private static String name;
	
	@Getter
	private static String version;
	
	@Getter
	private static String copyrightYear;
	
	@Getter
	private static String author;
	
	@Getter
	private static boolean enableSmsLog;
	
	@Getter
	private static String baseCacheKey;

	public void setName(String name) {
		AppProperties.name = name;
	}

	public void setVersion(String version) {
		AppProperties.version = version;
	}

	public void setCopyrightYear(String copyrightYear) {
		AppProperties.copyrightYear = copyrightYear;
	}

	public void setAuthor(String author) {
		AppProperties.author = author;
	}

	public void setEnableSmsLog(boolean enableSmsLog) {
		AppProperties.enableSmsLog = enableSmsLog;
	}

	public void setBaseCacheKey(String baseCacheKey) {
		AppProperties.baseCacheKey = baseCacheKey;
	}
	
}
